﻿using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace TImSdk
{
    /// <summary>
    /// 添加好友接口的参数
    /// </summary>
    public class FriendshipAddFriendParam
    {
        /// <summary>
        /// 请求加好友对应的identifier
        /// </summary>
        [JsonProperty("friendship_add_friend_param_identifier")]
        public string Identifier { get; set; }
        /// <summary>
        ///  请求添加好友的好友类型
        /// </summary>
        [JsonProperty("friendship_add_friend_param_friend_type")]
        public TIMFriendType FriendType { get; set; }
        /// <summary>
        /// , 预备注
        /// </summary>
        [JsonProperty("friendship_add_friend_param_remark")]
        public string Remark { get; set; }
        /// <summary>
        /// 预分组名
        /// </summary>
        [JsonProperty("friendship_add_friend_param_group_name")]
        public string GroupName { get; set; }
        /// <summary>
        /// 加好友来源描述
        /// </summary>
        [JsonProperty("friendship_add_friend_param_add_source")]
        public string AddSource { get; set; }
        /// <summary>
        /// 加好友附言
        /// </summary>
        [JsonProperty("friendship_add_friend_param_add_wording")]
        public string AddWording { get; set; }

        /* json_add_friend_param[kTIMFriendshipAddFriendParamIdentifier] = "user4";
         json_add_friend_param[kTIMFriendshipAddFriendParamFriendType] = FriendTypeBoth;
         json_add_friend_param[kTIMFriendshipAddFriendParamAddSource] = "Windows";
         json_add_friend_param[kTIMFriendshipAddFriendParamAddWording] = "I am Iron Man";*/
        public FriendshipAddFriendParam(string identifier,string remark,string addWording)
        {
            Identifier = identifier;
            Remark = remark;
            AddWording = addWording;
            FriendType = TIMFriendType.FriendTypeBoth;
            AddSource = "Windows";

        }
    }
}
